{% load site_user %}

<p class="newsTitle"><a href="/mdcs/news/{{ one_news.id }}/">{{ one_news.news_title }}</a></p>
<p class="newsSubTitle">
	<span class="newsSubTitleLeft">
		objavio {{ one_news.user|site_user }} 
		| {{ one_news.date_updated|date }} {{ one_news.date_updated|time }}
	</span>
	<span class="newsSubTitleRight">
		{% comment %}
			Ovo je hack da bi izvukli da vest moze da edituje samo korisnik koji ju je napisao ili superuser
		{% endcomment %}
		{% if user.is_superuser %}
			<a href="/mdcs/news/edit/{{ one_news.id }}">
				<img src="/mdcs/media/images/edit.png" width="16" height="16" title="Izmeni vest"/>
			</a>
		{% else %}
			{% if perms.mdcsapp.change_news %}
				{% ifequal user one_news.user.user %}
					<a href="/mdcs/news/edit/{{ one_news.id }}">
						<img src="/mdcs/media/images/edit.png" width="16" height="16" title="Izmeni vest"/>
					</a>
				{% endifequal %}
			{% endif %}
		{% endif %}
	</span>
</p>
{{ one_news.news_text|safe }}
<p class="newsTextEnd"></p>